﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Shoot : MonoBehaviour {

    public GameObject buttle;

    private Transform playerPos;

	// Use this for initialization
	void Start () {
        playerPos = GetComponent<Transform>();
	}
	
	// Update is called once per frame
	void Update () {
	
        if(Input.GetMouseButtonDown(0)){
            
            Instantiate(buttle, playerPos.position, Quaternion.identity);

        }

	}
}
